<template >
    <panel title="新品推荐" :class="$style.panel">
        <section :class="$style.content">
            <div class="arrow">更多尖货 ></div>
            <Slider :options="options" :items="items" cname="product-slider"/>
        </section>
    </panel>
</template>



<style lang="scss">
  .product-slider{
    .swiper-container{
      box-sizing: border-box;
      padding: 0 24px;
      .swiper-slide{
        a{
          display: inline-block;
          width: 100%;
          img{
            width: 100%;
            display: block;
            height: 250px;   //314
            border: 1px solid gray;
          }
        }
      }
    }
  }
</style>

<style lang="scss" module>

  @import "../css/element.scss" ;

  .panel{
    @include panel;
    .content{
      padding-bottom: 40px;
      position: relative;
      &>div{
        position: absolute;
        font-size: 28px;
        color: #999;
        right:20px;
        top: -70px;
      }
    }
  }
</style>


<script>
import panel from "../smallzj/panel.vue"
import Slider from "../smallzj/slider.vue"
export default {
    components: {
        panel,
        Slider,
    },
    data() {
        return {
            items: [{
                href: "child",
                src: "http://www.yjw.com/WEBPACK1/%E4%BA%AC%E4%B8%9C%E9%87%91%E8%9E%8D%E9%A1%B9%E7%9B%AE/images/products/QQ20190622-145251.png",
            }, {
                href: "home",
                src: "http://www.yjw.com/WEBPACK1/%E4%BA%AC%E4%B8%9C%E9%87%91%E8%9E%8D%E9%A1%B9%E7%9B%AE/images/products/QQ20190622-145120.png",
            }, {
                href: "home",
                src: "http://www.yjw.com/WEBPACK1/%E4%BA%AC%E4%B8%9C%E9%87%91%E8%9E%8D%E9%A1%B9%E7%9B%AE/images/products/QQ20190622-145500.png",
            }, {
                href: "home",
                src: "http://www.yjw.com/WEBPACK1/%E4%BA%AC%E4%B8%9C%E9%87%91%E8%9E%8D%E9%A1%B9%E7%9B%AE/images/products/QQ20190622-145354.png",
            }],
            options: {
                slidesPerView: 2.3,
                spaceBetween: 30,
                freeMode: true,
            },
        }
    },
}
</script>
